package sample.tangocho.service;

import sample.tangocho.dataaccess.CardDao;
import sample.tangocho.dataaccess.CardDaoImpl;
import sample.tangocho.dataaccess.TangochoDao;
import sample.tangocho.dataaccess.TangochoDaoImpl;
import android.content.Context;

public class RemoveTangochoServiceImpl implements RemoveTangochoService {
	
	private TangochoDao tangochoDao;

	private CardDao cardDao;

	public RemoveTangochoServiceImpl(Context context) {

		// TODO DI
		tangochoDao = new TangochoDaoImpl(context);
		cardDao = new CardDaoImpl(context);
	}


	@Override
	public void removeTangocho(int id) {
		cardDao.deleteCardByTangochoId(id);
		tangochoDao.deleteTangocho(id);
	}

}
